<template>
  <div id="app">
    <!-- 页面内容 -->
    <router-view />

    <!-- 底部导航栏 -->
    <van-tabbar v-model="activeTab" active-color="#ee0a24" inactive-color="#000">
      <van-tabbar-item name="home" icon="home-o" to="/">主页</van-tabbar-item>
      <van-tabbar-item name="search" icon="apps-o" to="/search">分类</van-tabbar-item>
      <van-tabbar-item name="gonggao" icon="bell-o" to="/gonggao">公告</van-tabbar-item>
      <van-tabbar-item name="deta" icon="shopping-cart-o" to="/deta">购物车</van-tabbar-item>
      <van-tabbar-item name="my" icon="user-o" to="/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeTab: 'home',
    }
  },
}
</script>

<style>
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
</style>
